package com.mall.app.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;

import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 物流公司表
 * </p>
 *
 * @author LeeSin
 * @since 2020-07-10
 */
@ApiModel(value="TbLogistic对象", description="物流公司表")
public class TbLogistic extends Model<TbLogistic> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "物流公司编号")
    @TableId(value = "lid", type = IdType.AUTO)
    private Integer lid;

    @ApiModelProperty(value = "物流公司名称")
    private String lname;

    @ApiModelProperty(value = "物流公司电话")
    private String ltel;

    @ApiModelProperty(value = "物流公司邮件")
    private String lemail;

    @ApiModelProperty(value = "物流公司地址")
    private String laddress;
    @TableLogic
    private Integer deleted;


    public Integer getLid() {
        return lid;
    }

    public void setLid(Integer lid) {
        this.lid = lid;
    }

    public String getLname() {
        return lname;
    }

    public void setLname(String lname) {
        this.lname = lname;
    }

    public String getLtel() {
        return ltel;
    }

    public void setLtel(String ltel) {
        this.ltel = ltel;
    }

    public String getLemail() {
        return lemail;
    }

    public void setLemail(String lemail) {
        this.lemail = lemail;
    }

    public String getLaddress() {
        return laddress;
    }

    public void setLaddress(String laddress) {
        this.laddress = laddress;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    @Override
    protected Serializable pkVal() {
        return this.lid;
    }

    @Override
    public String toString() {
        return "TbLogistic{" +
        "lid=" + lid +
        ", lname=" + lname +
        ", ltel=" + ltel +
        ", lemail=" + lemail +
        ", laddress=" + laddress +
        ", deleted=" + deleted +
        "}";
    }
}
